package singleton.type8;

/**
 * 使用枚举
 */
public enum Singleton {
    INSTANCE;

    public static Singleton getInstance() {
        return INSTANCE;
    }

    public void method() {
        System.out.println("Singleton.method, hashCode=" + this.hashCode());
    }
}
